<?php
include("lib_db.php");
include("function.php");
if(isset($_REQUEST['gid'])){
    $gid=$_REQUEST['gid'];
	echo clist_option($gid);
}
if(isset($_REQUEST['id'])){
    $gid=$_REQUEST['id'];
    $cid=$_REQUEST['cid'];
	echo clist_select_option($gid,$cid);
}

?>